"""
给url不同的接口地址进行封装
"""
from core.rest_client import RestClient
# 不同的域名放到这里来
from utils.read import base_data

api_dit_url1 = base_data.read_ini()['host']['api_dit_url1']
api_dit_url2 = base_data.read_ini()['host']['api_dit_url2']


class Api(RestClient):
    def __init__(self, url):  # 实例化时传入域名
        super(Api, self).__init__(url)

    def user_login(self, **kwargs):
        return self.post(':8304/center/login/user-login-for-web', **kwargs)


api_util = Api(api_dit_url1)
api_util2 = Api(api_dit_url2)
